﻿#ifndef __PROTECTIONICON_H_
#define __PROTECTIONICON_H_
#include"DrawMulticoloredCircle.h"
class Articles;
//保护罩
class ProtectionIcon :public DrawMulticoloredCircle
{
public:
	//被保护的对象,保护时间
	ProtectionIcon(const QPoint& o,const qint32 r,const int time = 0,const int Hz = 10);
	~ProtectionIcon()=default;
	//将自动跟踪父亲的中心点
	//void update()override;
	void draw(QPainter* painter)override;
	//设置圆心坐标
	//void setPointO(Articles& parent);
	
	//设置剩余时间
	void  setTime(int time);
private:

private:
	int m_time;//显示的剩余时间
	QPoint m_TextPos;
	QPen  m_NumPen;
	QFont m_NumFont;
};
#endif